package com.wjk.kylin.modules.system.position.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjk.kylin.modules.system.position.entity.Position;

import java.util.List;


/**
 * <p>
 *  职位表 服务类
 * </p>
 *
 * @author wangjkui
 * @since 2020-06-01
 */
public interface IPositionService extends IService<Position> {


    boolean update(Position position);

    boolean save(Position position);

    boolean deleteByIds(String[] positionIds);

    IPage<Position> findPage(Page<Position> page, Position position);

    /**
     * 用户拥有的岗位id
     * @param userId
     * @return
     */
    List<String> findPositionListByUserId(String userId);
}
